package edu.kjxy.day03.synchronizedBlockLockAll.test2;

/**
 * 功能:
 * 作者:程序员欧阳子韩
 * 日期:2024/2/2 19:40
 */
public class MyObject {
    synchronized public void speedPrintString(){
        System.out.println("speedPrintString___getLock time=" + System.currentTimeMillis() +
                "run ThreadName=" + Thread.currentThread().getName());
        System.out.println("----------------");
        System.out.println("speedPrintString___releaseLock time=" + System.currentTimeMillis() +
                "run ThreadName=" + Thread.currentThread().getName());
    }
}
